import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: resolve=>require(['@/views/index'],resolve)
    },
    {
      path: '/data_modal',
      component: resolve=>require(['@/components/data_modal'],resolve)
    },
    {
      path:'/data',
      component:resolve=>require(['@/components/data'],resolve)
    },
    {
      path:'/Richtext',
      component:resolve=>require(['@/components/Richtext'],resolve)
    },
    {
      path:'/wx_h5',
      component:resolve=>require(['@/views/wx_h5'],resolve)
    },
    {
      path:'/garbage',
      component:resolve=>require(['@/views/chrome_Garbage'],resolve)
    },
    {
      path:'/vue-router',
      component:resolve=>require(['@/views/vue-router'],resolve)
    },
    {
      path:'/web_cryptography',
      component:resolve=>require(['@/views/web_cryptography'],resolve)
    },
    {
      path:'/js-datatype',
      component:resolve=>require(['@/views/js-datatype'],resolve)
    },
  ]
})
